var http = require('http');
var url = require('url');
var util = require('util');

http.createServer((req,res) => {
	res.writeHead(200, {'content-type':'text/plain'});
	var params = url.parse(req.url, true).query;
	console.log('website:', params.name, '\n');
	console.log('url:', params.url);
	res.end(util.inspect(url.parse(req.url, true)));
}).listen(8080);

console.log('server started');


